Optimal. Leaf size=144 \[ -\frac{i \sqrt{1-x^2} \text{PolyLog}\left (2,-\frac{i \sqrt{1-x}}{\sqrt{x+1}}\right )}{\sqrt{a-a x^2}}+\frac{i \sqrt{1-x^2} \text{PolyLog}\left (2,\frac{i \sqrt{1-x}}{\sqrt{x+1}}\right )}{\sqrt{a-a x^2}}-\frac{2 \sqrt{1-x^2} \tan ^{-1}\left (\frac{\sqrt{1-x}}{\sqrt{x+1}}\right ) \tanh ^{-1}(x)}{\sqrt{a-a x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0543704, antiderivative size = 144, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {5954, 5950} \[ -\frac{i \sqrt{1-x^2} \text{PolyLog}\left (2,-\frac{i \sqrt{1-x}}{\sqrt{x+1}}\right )}{\sqrt{a-a x^2}}+\frac{i \sqrt{1-x^2} \text{PolyLog}\left (2,\frac{i \sqrt{1-x}}{\sqrt{x+1}}\right )}{\sqrt{a-a x^2}}-\frac{2 \sqrt{1-x^2} \tan ^{-1}\left (\frac{\sqrt{1-x}}{\sqrt{x+1}}\right ) \tanh ^{-1}(x)}{\sqrt{a-a x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5954
Rule 5950
Rubi steps
\begin{align*} \int \frac{\tanh ^{-1}(x)}{\sqrt{a-a x^2}} \, dx &=\frac{\sqrt{1-x^2} \int \frac{\tanh ^{-1}(x)}{\sqrt{1-x^2}} \, dx}{\sqrt{a-a x^2}}\\ &=-\frac{2 \sqrt{1-x^2} \tan ^{-1}\left (\frac{\sqrt{1-x}}{\sqrt{1+x}}\right ) \tanh ^{-1}(x)}{\sqrt{a-a x^2}}-\frac{i \sqrt{1-x^2} \text{Li}_2\left (-\frac{i \sqrt{1-x}}{\sqrt{1+x}}\right )}{\sqrt{a-a x^2}}+\frac{i \sqrt{1-x^2} \text{Li}_2\left (\frac{i \sqrt{1-x}}{\sqrt{1+x}}\right )}{\sqrt{a-a x^2}}\\ \end{align*}
Mathematica [A] time = 0.0990153, size = 90, normalized size = 0.62 \[ -\frac{i \sqrt{a \left (1-x^2\right )} \left (\text{PolyLog}\left (2,-i e^{-\tanh ^{-1}(x)}\right )-\text{PolyLog}\left (2,i e^{-\tanh ^{-1}(x)}\right )+\tanh ^{-1}(x) \left (\log \left (1-i e^{-\tanh ^{-1}(x)}\right )-\log \left (1+i e^{-\tanh ^{-1}(x)}\right )\right )\right )}{a \sqrt{1-x^2}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.354, size = 210, normalized size = 1.5 \begin{align*}{\frac{i{\it Artanh} \left ( x \right ) }{a \left ({x}^{2}-1 \right ) }\ln \left ( 1+{i \left ( 1+x \right ){\frac{1}{\sqrt{-{x}^{2}+1}}}} \right ) \sqrt{-{x}^{2}+1}\sqrt{- \left ( -1+x \right ) \left ( 1+x \right ) a}}-{\frac{i{\it Artanh} \left ( x \right ) }{a \left ({x}^{2}-1 \right ) }\ln \left ( 1-{i \left ( 1+x \right ){\frac{1}{\sqrt{-{x}^{2}+1}}}} \right ) \sqrt{-{x}^{2}+1}\sqrt{- \left ( -1+x \right ) \left ( 1+x \right ) a}}+{\frac{i}{a \left ({x}^{2}-1 \right ) }{\it dilog} \left ( 1+{i \left ( 1+x \right ){\frac{1}{\sqrt{-{x}^{2}+1}}}} \right ) \sqrt{-{x}^{2}+1}\sqrt{- \left ( -1+x \right ) \left ( 1+x \right ) a}}-{\frac{i}{a \left ({x}^{2}-1 \right ) }{\it dilog} \left ( 1-{i \left ( 1+x \right ){\frac{1}{\sqrt{-{x}^{2}+1}}}} \right ) \sqrt{-{x}^{2}+1}\sqrt{- \left ( -1+x \right ) \left ( 1+x \right ) a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{\sqrt{-a x^{2} + a} \operatorname{artanh}\left (x\right )}{a x^{2} - a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{atanh}{\left (x \right )}}{\sqrt{- a \left (x - 1\right ) \left (x + 1\right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{artanh}\left (x\right )}{\sqrt{-a x^{2} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]